package com.hxk.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hxk.pojo.User;

@RestController
public class UserController {

	@RequestMapping("/users")
	public List<User> getUsers(){
		List<User> users = new ArrayList<>();
		users.add(new User(1, "张三", 23));
		users.add(new User(2, "李四", 25));
		users.add(new User(3, "王五", 27));
		return users;
	}
}
